package com.li.youhappygo.util;

import com.li.youhappygo.model.entity.system.SysUser;

public class AuthContext {
    private static final ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();
    public static void setUser(SysUser user)
    {
        threadLocal.set(user);
    }
    public static SysUser getUser()
    {
        return threadLocal.get();
    }
    public static void removeUser()
    {
        threadLocal.remove();
    }
}
